###########################################################################
#
#  Library:   CTK
#
#  Copyright (c) Kitware Inc.
#
#  Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
#  You may obtain a copy of the License at
#
#      http://www.commontk.org/LICENSE
#
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
#  limitations under the License.
#
###########################################################################

#
# qxmlrpcConfig.cmake - qxmlrpc CMake configuration file for external projects.
#

# The qxmlrpc include file directories.
SET(qxmlrpc_INCLUDE_DIRS "@qxmlrpc_INCLUDE_DIRS_CONFIG@")
 
# The qxmlrpc library directories. Note that if
# qxmlrpc_CONFIGURATION_TYPES is set (see below) then these directories
# will be the parent directories under which there will be a directory
# of runtime binaries for each configuration type.
SET(qxmlrpc_LIBRARY_DIRS "@qxmlrpc_LIBRARY_DIRS_CONFIG@")
  
# The qxmlrpc runtime library directories. Note that if
# qxmlrpc_CONFIGURATION_TYPES is set (see below) then these directories
# will be the parent directories under which there will be a directory
# of runtime libraries for each configuration type.
SET(qxmlrpc_RUNTIME_LIBRARY_DIRS "@qxmlrpc_RUNTIME_LIBRARY_DIRS_CONFIG@")
 
# The location of the Useqxmlrpc.cmake file.
SET(qxmlrpc_USE_FILE "@qxmlrpc_USE_FILE@")
  
 
# A qxmlrpc install tree always provides one build configuration. 
# A qxmlrpc build tree may provide either one or multiple build 
# configurations depending on the CMake generator used. 
# Since qxmlrpc can be used either from a build tree or an install 
# tree it is useful for outside projects to know the configurations available. 
# If this qxmlrpcConfig.cmake is in a qxmlrpc install 
# tree qxmlrpc_CONFIGURATION_TYPES will be empty and 
# qxmlrpc_BUILD_TYPE will be set to the value of
# CMAKE_BUILD_TYPE used to build qxmlrpc. If qxmlrpcConfig.cmake 
# is in a qxmlrpc build tree then qxmlrpc_CONFIGURATION_TYPES 
# and qxmlrpc_BUILD_TYPE will have values matching CMAKE_CONFIGURATION_TYPES 
# and CMAKE_BUILD_TYPE for that build tree (only one will ever be set).
SET(qxmlrpc_CONFIGURATION_TYPES @qxmlrpc_CONFIGURATION_TYPES_CONFIG@)
SET(qxmlrpc_BUILD_TYPE @qxmlrpc_BUILD_TYPE_CONFIG@)

FIND_LIBRARY(qxmlrpc_LIBRARY_DEBUG qxmlrpc
  HINTS ${qxmlrpc_LIBRARY_DIRS}/Debug NO_DEFAULT_PATH)
  
FIND_LIBRARY(qxmlrpc_LIBRARY_RELEASE qxmlrpc
  HINTS ${qxmlrpc_LIBRARY_DIRS}/Release NO_DEFAULT_PATH)
  
FIND_LIBRARY(qxmlrpc_LIBRARY qxmlrpc
    HINTS ${qxmlrpc_LIBRARY_DIRS} NO_DEFAULT_PATH)
  
IF(qxmlrpc_LIBRARY_DEBUG AND qxmlrpc_LIBRARY_RELEASE)
  SET(qxmlrpc_LIBRARY "debug;${qxmlrpc_LIBRARY_DEBUG};optimized;${qxmlrpc_LIBRARY_RELEASE}")
ELSEIF(qxmlrpc_LIBRARY_DEBUG)
  SET(qxmlrpc_LIBRARY ${qxmlrpc_LIBRARY_DEBUG})
ELSEIF(qxmlrpc_LIBRARY_RELEASE)
  SET(qxmlrpc_LIBRARY ${qxmlrpc_LIBRARY_RELEASE})
ENDIF()

